/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tallerfinal.controller;

/**
 *
 * @author ricardo
 */
public class Tuple {

    public static String nameA;
    public static String nameB;
    private int a;
    private int b;

    public Tuple(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 31 * hash + this.a;
        hash = 31 * hash + this.b;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Tuple other = (Tuple) obj;
        if (this.a != other.a) {
            return false;
        }
        if (this.b != other.b) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "[" + nameA + " = " + a + " " + nameB + " = " + b + "]";
    }
}
